﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Reviewer.aspx.cs" Inherits="ElectronicJournal.Reviewer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:Panel ID="MyReviews" runat="server"> 
<p align="justify">
<h4> <strong>
 Список статей, для которых необходимо предоставить рецензии </strong></h4> <p>	   


    <asp:GridView runat="server" ID="GridViewArticleReview"
        AutoGenerateColumns="False" OnLoad = "GridViewArticleReview_Load"
        BackColor="White" 
        CellPadding="3" CssClass="th" PagerStyle-CssClass="note" EnableViewState= false
        OnRowDataBound="GridViewArticleReviewRowDataBound" 
        CellSpacing="5" BorderStyle=Dotted HeaderStyle-Font-Italic=true HeaderStyle-Wrap=true  >
        <AlternatingRowStyle BackColor="#EEF5F6" />
    <Columns >
        <asp:BoundField DataField="NameJournal" HeaderText = "Журнал" ItemStyle-HorizontalAlign=Center  />
        <asp:BoundField DataField="NameArticle" HeaderText = "Статья" ItemStyle-HorizontalAlign=Center/>
        <asp:HyperLinkField  Text="Посмотреть статью"
        datatextformatstring="{0:c}" datanavigateurlfields="URLArticle"  ItemStyle-HorizontalAlign=Center/> 
        <asp:BoundField DataField="DateArticle" HeaderText="Дата загрузки"  ItemStyle-HorizontalAlign=Center/>
        <asp:HyperLinkField  Text="Рецензия" datatextformatstring="{0:c}"
            datanavigateurlfields="URLNewReview" ItemStyle-HorizontalAlign=Center/>

        <asp:TemplateField  HeaderText = "Прежние рецензии">
        <ItemTemplate>
        <asp:GridView OnRowCreated="GridViewArticleReviewOnRowDataBound" EnableViewState = "false"
          ID="GridViewOldReview"
          AutoGenerateColumns="False"
          runat="server" BorderStyle="None" CellSpacing="20" > 
            <Columns>
              <asp:HyperLinkField Text="Посмотреть" 
                datatextformatstring="{0:c}" datanavigateurlfields="URLReview" ItemStyle-HorizontalAlign=Center  /> 
              <asp:BoundField DataField="DateOldReview" ItemStyle-HorizontalAlign=Center />
             </Columns>
        </asp:GridView>
        </ItemTemplate>
        </asp:TemplateField>

    </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle Font-Bold="True" ForeColor="Black" />
        <PagerStyle BackColor="#999999" CssClass="note" ForeColor="Black" 
            HorizontalAlign="Center" />
        <RowStyle Height="200" BackColor="White" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#0000A9" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#000065" />
    </asp:GridView>

</asp:Panel>
</asp:Content>
